import { createStore } from "vuex";

export default createStore({
  state: {
    userInfo: {
      accounta: "",
      passworda: "",
    },
  },
  getters: {},
  mutations: {
    updateUserInfo(state, payload) {
      if (payload) state.userInfo = payload;
    },
    deleteUserInfo(state) {
      state.userInfo.accounta = "";
      state.userInfo.passworda = "";
      console.log(0, state.userInfo)
    },
  },
  actions: {},
  modules: {},
});
